import { fliterPermission } from '@/utils/sys.js'

export const apis = {
  list: `/business/statistics/monthReport?authCode=FUNCTION_REPORT_MONTH`,

};

export const configs = {
  listUrl: apis.list,
  pageOn: true, // 开启分页
  searchOn: true, // 开启搜索
  operateOn: true, //开启操作区域
  treeOn: false, // 开启树形
  searchMode:'custome',
  showSummary: true,

};


export const searchs = [
 
  {
    type: "DatePicker",
    column: "stat_month",
    label: "月份",
    mode:"month",
    format:"YYYY-MM"
  },
];

export const pages = {
  pageSize: 20,
  orders: [
    {
      field: "id",
      sort: "desc",
    },
  ],
};
export const columns = [
  {
    label: "月份",
    column: "stat_month",
    width: "120",
    fixed: "left"
  },
  {
    label: "用户数",
    column: "stat_user",
  },
  {
    label: "入库",
    column: "stat_warehousing",

  },
  {
    label: "出库",
    column: "stat_outbound",
  },
  {
    label: "运输中",
    column: "stat_transit",
    display: "text",
  },
  {
    label: "抵达国外仓",
    column: "stat_arrived",
    display: "text",
          width: '100'
  },
  {
    label: "派送中",
    column: "stat_delivery",
  },
  {
    label: "已签收",
    column: "stat_signed",
  },
  {
    label: "未付数",
    column: "stat_unpaid_num",
  
  },
  {
    label: "未付金额",
    column: "stat_unpaid_money",
      width: '100'
  },
  {
    label: "已付数",
    column: "stat_paid_num",
  },
  {
    label: "已付金额",
    column: "stat_paid_money",
          width: '100'
  },
  {
    label: "待审核",
    column: "stat_examine_num",
  },
  {
    label: "待审核金额",
    column: "stat_examine_money",
          width: '100'
  },
  {
    label: "总收入",
    column: "stat_income",
  },
  {
    label: "总成本",
    column: "stat_cost",
  },
  {
    label: "成本",
    column: "stat_shipping",
          width: '100'
  },
  {
    label: "提成佣金",
    column: "stat_agent",
          width: '100'
  },
  {
    label: "微信支付",
    column: "stat_wechat_pay",
          width: '100'
  },
  {
    label: "微信转账",
    column: "stat_transfer_wechat_pay",
          width: '100'
  },
  {
    label: "支付宝转账",
    column: "stat_transfer_alipay_pay",
          width: '100'
  },
  {
    label: "银行转账",
    column: "stat_transfer_bank_pay",
          width: '100'
  },
  

  
];

export const buttons = fliterPermission([
  
]);
export const columnButtons = fliterPermission([
 
]);
